{% extends "oscar/search/results.html" %}
{% load currency_filters %}
{% load thumbnail %}
{% load product_tags %}
{% load i18n %}

{% block content %}

{% if suggestion %}
    {% trans 'Did you mean' %} <a href="{% url search:search %}?q={{ suggestion }}">{{ suggestion }}</a>?
{% endif %}

{% if page.object_list %}
<section>
    <div class="mod">
        {% include "search/partials/pagination.html" %}
        <ol class="products four">
            {% for result in page.object_list %}
                <li {% if forloop.counter|divisibleby:"4" %}class="no-margin"{% endif %}>{% render_product result.object %}</li>
            {% endfor %}
        </ol>
        {% include "search/partials/pagination.html" %}
    </div>
</section>
{% else %}
    <p>{% trans 'No search results found.' %}</p>
{% endif %}

{% endblock %}